package com.xfc.school.domain;

import java.sql.Time;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xfc.common.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 课程对象 sc_course
 * 
 * @author lcj
 * @date 2021-12-07
 */
@Data
@TableName("sc_course_list")
public class ScCourseList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 排课id */
    private String id;

    /** 课程名字 */
    private String courseName;

    /** 周几 */
    private Integer week;

    /** 开始小时 */
    @DateTimeFormat(pattern = "HH:mm")
    @JsonFormat(pattern="HH:mm:ss",timezone = "GMT+8")
    private Time startTime;

    /** 结束小时 */
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern="HH:mm:ss",timezone = "GMT+8")
    private Time endTime;

    /** 课程id */
    private String classId;

    /** 状态 */
    private Integer courseType;

    /**
     * 老师id
     */
    private String teacherId;

    /**
     * 老师名称
     */
    @TableField(exist = false)
    private String teacherName;

}
